/* Project Axium
 * linux.h
 * Linux conversion file -- Damian
 */
#pragma once

#ifndef _LINUX_H_
#define _LINUX_H_

/* Windows uses SOCKET and Linux uses int, define the type */
typedef int SOCKET;

#define closesocket close
#define INVALID_SOCKET -1
#define SOCKET_ERROR -1

#ifndef INADDR_NONE
#define INADDR_NONE ((unsigned long) -1)
#endif

/* Shutdown: send */
#ifndef SD_SEND
#define SD_SEND 1
#endif

/* chdir() directory, on my box "/root" has to be used, can be "/" on some others. */
#define CHDIR_DIR "/root"

#endif


